package com.senven.shoppingcar.service;

import com.senven.common.entity.Branch;
import com.senven.common.entity.ShoppingTrolley;
import com.baomidou.mybatisplus.extension.service.IService;
import com.senven.shoppingcar.vo.CommonResult;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 周世玉
 * @since 2022-08-31
 */
public interface IShoppingTrolleyService extends IService<ShoppingTrolley> {

    CommonResult selectAll(String userid);

    CommonResult updateAddNum(Integer gid,Integer bid);

    Integer updateApiAddNum(Integer gid,Integer bid);

    CommonResult updateReduceNum(Integer gid, Integer bid);

    Integer updateApiReduceNumNum(Integer gid, Integer bid);


    CommonResult addCat(Integer branchid, Integer goodsid, Integer stNum, Integer goodsPrice, String uid);

    CommonResult delCat(Integer ctid);

    CommonResult getCat(Integer branchid, Integer goodsid);

    CommonResult deleteIsDeleted(List<Integer> stIds);

    CommonResult shopSalesAll(String start,String end);

    CommonResult findDishesSales(Map map);


    CommonResult findBranchName(Object token);
}
